# create a new koji builder on raw hw
# NOTE: should be used with --limit most of the time
# NOTE: most of these vars_path come from group_vars/buildhw or from hostvars

- name: make koji builder(s) on raw hw
  hosts: buildhw;buildppc;buildarm
  user: root
  gather_facts: True

  vars_files: 
   - /srv/web/infra/ansible/vars/global.yml
   - "{{ private }}/vars.yml"
   - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

  roles:
  - base
  - koji_builder

  tasks:
  - include: "{{ tasks }}/yumrepos.yml"
  - include: "{{ tasks }}/hosts.yml"

  handlers:
  - include: "{{ handlers }}/restart_services.yml"
